<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>JavaPlanet Project</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<style type="text/css">
<!--
.style1 {color: #000000}
-->
</style>
</head>
<body>
<form name="frmBusquedaPelicula">
<div id="bg1">
	<div id="header">
		<h1><a href="#">JavaPlanet</a></h1>		
	</div>
	<!-- end #header -->
</div>
<!-- end #bg1 -->
<div id="bg2">
	<div id="header2">
		<div id="menu">
			<ul>
            	<li><a href="login.htm?metodo=home">Inicio</a></li>
            	<li><a href="estrenos.htm">Proximos Estrenos</a></li>
            	<li><a href="cartelera.htm">Ver Cartelera</a></li>
				<li><a href="pelicula.htm">Mant. Películas</a></li>
				<li><a href="cine.htm">Mant. Cines</a></li>
				<li><a href="sala.htm">Mant. Salas</a></li>
				<li><a href="producto.htm">Mant. Productos</a></li> 
				<li><a href="cartelera.htm">Generar Cartelera</a></li>
			</ul>
		</div>
		<!-- end #menu -->

		<!-- end #search -->
	</div>
	<!-- end #header2 -->
</div>
<!-- end #bg2 -->
<div id="bg3">
	<div id="bg4">
		<div id="bg5">
			<div id="page">
				<div id="content">
				    
						<div class="post">
						<div class="title">
							<h2><a href="#">B&uacute;squeda de salas </a></h2>
							<p><label style="color:red">${mensaje }</label></p>
							<p>&nbsp;&nbsp;</p>
						</div>
						<div class="entry">                              
						  <form action="sala.htm" method="post">
						   <input type="hidden" name="metodo" value="buscar" />
						  <table width="100%" align="center" >
						    <tr>
							  <td width="1">&nbsp;</td>
							  <td align="left">Cine</td>
                              <td>
                              <select id="cboCine" name="cboCine">
                              <option value="0" selected="selected">Todos</option>
                              <c:forEach items="${listaCine }" var="row">
                              	<option value="${row.coCine }" <c:if test="${cboCine==row.coCine }">selected</c:if> >${row.nombre }</option>
                              </c:forEach>
                             </td>
							  <td width="3"></td>
							  <td width="1">&nbsp;</td>
							  <td align="left">&nbsp;</td>
                              <td>&nbsp;</td>
							  <td width="3"></td>
							  <td width="1">&nbsp;</td>
							  <td align="left">&nbsp;</td>
                              <td>&nbsp;</td>
							  <td width="3"></td>
                            </tr> 
							<tr>
							  <td width="1">&nbsp;</td>
							  <td align="left">Tipo</td>
                              <td><select id="cboTipo" name="cboTipo">
                                <option value="Todos" <c:if test="${cboTipo=='Todos' }">selected</c:if> >Todos</option>
                                <option value="2D" <c:if test="${cboTipo=='2D' }">selected</c:if> >2D</option>
                                <option value="3D" <c:if test="${cboTipo=='3D' }">selected</c:if> >3D</option>
                              </select></td>
							  <td width="3"></td>
							  <td width="1">&nbsp;</td>
							  <td align="left">&nbsp;</td>
                              <td>&nbsp;</td>
							  <td width="3"></td>
							  <td width="1">&nbsp;</td>
							  <td align="left">&nbsp;</td>
                              <td>&nbsp;</td>
							  <td width="3"></td>
                            </tr>
                          </table>
						  <table width="100%" align="center" height="20">
						  <tr>
						    <td align="center" nowrap="nowrap">
							   <input align="left" type="submit" id="btnBuscar" name="btnBuscar" value="Buscar" /></td>
						  </tr>
					   </table>
						   </form>
					    <table width="100%" align="center" height="20">
						  <tr>
						  	<th align="left">
                                            <a href="sala.htm?metodo=nuevo">Nuevo</a>
                                        </th>																	
						  </tr>
						  <tr bgcolor="#666666">
						  
						  				<th align="center">
                                            <h4>
                                                <strong>Numero</strong></h4>
                                        </th>
                                        <th align="center">
                                            <h4>
                                                <strong>Capacidad</strong></h4>
                                        </th>
                                        <th align="center">
                                            <h4>
                                                <strong>Cine</strong></h4>
                                        </th>
                                        <th align="center">
                                            <h4>
                                                <strong>Tipo</strong></h4>
                                        </th>
                                        <th align="center">
                                            <h4>
                                                <strong>Editar</strong></h4>
                                        </th>
                                        <th align="center">
                                            <h4>
                                                <strong>Eliminar</strong></h4>
                                        </th>
						  						
						  </tr>
						<c:forEach items="${listaSala }" var="row">
						  <tr bgcolor="#FFFFFF">
						   <td align="center">
                                            <span class="style1">${row.coSala }</span>
                                        </td>
                                        <td align="center">
                                            <span class="style1">${row.capacidad }</span>
                                        </td>
                                        <td align="center">
                                            <span class="style1">${row.cine.nombre }</span>
                                        </td>
                                        <td align="center">
                                            <span class="style1">${row.tipo }</span>
                                        </td>
                                        <td align="center">
                                            <a href="sala.htm?metodo=actualizar&codigo=${row.coSala }">
                                                <img src="images/iconUpdate.gif" />
                                                </a>
                                        </td>
                                        <td align="center">
                                        	<a href="sala.htm?metodo=eliminar&codigo=${row.coSala }">
                                            <img src="images/iconDelete.gif" /></a>
                                        </td>						  							
						  </tr>
						  </c:forEach>
					   </table>
					   
					   
					   </div>
      				   </div>
                   
				</div>
				<!-- end #content -->
				<div style="clear: both; height: 40px;">&nbsp;</div>
			</div>
			<!-- end #page -->
		</div>
	</div>
</div>
<!-- end #bg3 -->
<div id="footer">
	<p>(c) 2011 Sitename.com. Design by <a href="http://www.nodethirtythree.com/">nodeThirtyThree</a> + <a href="http://www.freewpthemes.net/">Free CSS Templates</a></p>
</div>
<!-- end #footer -->
</form>
</body>
</html>